package com.orhon.smartcampus.modules.baseinfo.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.util.Date;
import java.sql.Timestamp;

@Setter
@Getter
@EqualsAndHashCode
@Entity
@Table(name = "baseinfo_schoolyear", schema = "smartcloud", catalog = "")
public class Schoolyear {
    @Id
    @Column(name = "schoolyear_id", nullable = false)
    private Long schoolyearId;
    @Column(name = "school_id", nullable = true)
    private Long schoolId;
    private String schoolyearCode;
    private Date startAt;
    private Date endAt;
    private Integer statusFlag;
    @Column(name = "created_at", nullable = true)
    private Date createdAt;
    private Integer createdBy;
    @Column(name = "updated_at", nullable = true)
    private Date updatedAt;
    private Integer updatedBy;
    @Column(name = "deleted_at", nullable = true)
    private Date deletedAt;
    private String mark;
    @Column(name = "schoolyear_name", nullable = true)
    private String schoolyearName;

    @Column(name = "schoolyear_code", nullable = true, length = 50)
    public String getSchoolyearCode() {
        return schoolyearCode;
    }

    public void setSchoolyearCode(String schoolyearCode) {
        this.schoolyearCode = schoolyearCode;
    }


    @Column(name = "start_at", nullable = true)
    public Date getStartAt() {
        return startAt;
    }

    public void setStartAt(Date startAt) {
        this.startAt = startAt;
    }


    @Column(name = "end_at", nullable = true)
    public Date getEndAt() {
        return endAt;
    }

    public void setEndAt(Date endAt) {
        this.endAt = endAt;
    }


    @Column(name = "status_flag", nullable = true)
    public Integer getStatusFlag() {
        return statusFlag;
    }

    public void setStatusFlag(Integer statusFlag) {
        this.statusFlag = statusFlag;
    }



    @Column(name = "created_by", nullable = true)
    public Integer getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Integer createdBy) {
        this.createdBy = createdBy;
    }



    @Column(name = "updated_by", nullable = true)
    public Integer getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(Integer updatedBy) {
        this.updatedBy = updatedBy;
    }




    @Column(name = "mark", nullable = true, length = 255)
    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

}
